﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ivy.UserRegistration.Entity;

namespace DasIdeen.ViewEntity
{
    public class UserContext
    {
        #region Variables & Constants
        string lUserSessionID = string.Empty;
        string lUserIPAddress = string.Empty;
        string lUserBrowser = string.Empty;
        string lUserSessionStartTime = string.Empty;
        User lCurrentUser;

        string lSys_CreatedByID = "-1";
        Int32 lSys_OrganizationID = -1;
        string lCultureInfo = "en-US";
        bool lIsUserVerificationRequired = true;
        #endregion Variables & Constants

        #region Constructor & Destructor
        #endregion Constructor & Destructor

        #region Public Properties
        public string UserSessionID
        {
            get
            {
                return lUserSessionID;
            }
            set
            {
                lUserSessionID = value;

            }
        }
        public string UserIPAddress
        {
            get
            {
                return lUserIPAddress;
            }
            set
            {
                lUserIPAddress = value;

            }
        }

        public string UserBrowser
        {
            get
            {
                return lUserBrowser;
            }
            set
            {
                lUserBrowser = value;

            }
        }
        public string UserSessionStartTime
        {
            get
            {
                return lUserSessionStartTime;
            }
            set
            {
                lUserSessionStartTime = value;

            }
        }
        public User CurrentUser
        {
            get
            {
                return lCurrentUser;
            }
            set
            {
                lCurrentUser = value;
                lSys_CreatedByID = lCurrentUser.Sys_CreatedByID;
                lSys_OrganizationID = lCurrentUser.Sys_OrganizationID;
            }
        }

        public string Sys_CreatedByID
        {
            get
            {
                return lSys_CreatedByID;
            }
            set
            {
                lSys_CreatedByID = value;

            }
        }

        public Int32 Sys_OrganizationID
        {
            get
            {
                return lSys_OrganizationID;
            }
            set
            {
                lSys_OrganizationID = value;

            }
        }

        public string CultureInfo
        {
            get
            {
                return lCultureInfo;
            }
            set
            {
                lCultureInfo = value;

            }
        }
        public bool IsUserVerificationRequired
        {
            get
            {
                return lIsUserVerificationRequired;
            }
            set
            {
                lIsUserVerificationRequired = value;
            }
        }
        #endregion Public Properties

        #region Public Methods
        #endregion Public Methods

        #region Events
        #endregion Events

        #region Private Methods
        #endregion Private Methods
    }
}